package qc.module.ehs.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import qc.module.ehs.dto.warehouse.WareHouseDto;
import qc.module.ehs.entity.EhsWarehouseBasic;

import java.util.List;

/**
 * EhsWarehouseBasicMapper
 *
 * @author QuCheng Tech
 * @since 2024/11/11
 */
@Mapper
public interface EhsWarehouseBasicMapper {
    EhsWarehouseBasicMapper MAPPER = Mappers.getMapper(EhsWarehouseBasicMapper.class);
    
    WareHouseDto toDto(EhsWarehouseBasic en);
    
    List<WareHouseDto> toDtoList(List<EhsWarehouseBasic> ens);

    EhsWarehouseBasic toEntity(WareHouseDto dto);
}
